package com.yfp.operation.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yfp.operation.domain.ComboPlanDevice;
import com.yfp.operation.domain.vo.DeviceCurrentComboPlanRoadVO;
import com.yfp.operation.service.ComboPlanDeviceService;
import com.yfp.operation.mapper.ComboPlanDeviceMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author admin
 * @description 针对表【combo_plan_device】的数据库操作Service实现
 * @createDate 2024-04-24 17:07:44
 */
@Service
public class ComboPlanDeviceServiceImpl extends ServiceImpl<ComboPlanDeviceMapper, ComboPlanDevice> implements ComboPlanDeviceService {


    @Resource
    private ComboPlanDeviceMapper comboPlanDeviceMapper;

    /**
     * 获取投放计划
     * @param machineId
     * @param currentTime
     * @return
     */
    @Override
    public List<DeviceCurrentComboPlanRoadVO> getByMachineIdAndDate(String machineId, Timestamp currentTime) {
        return comboPlanDeviceMapper.getByMachineIdAndDate(machineId,currentTime);
    }

}




